Optimal. Leaf size=294 \[ \frac {x}{b}+\frac {2 (-1)^{2/3} \sqrt [3]{a} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left (\sqrt [6]{-1} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}} b d}+\frac {2 (-1)^{2/3} \sqrt [3]{a} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left ((-1)^{5/6} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}} b d}+\frac {2 \sqrt [3]{a} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 \sqrt {a^{2/3}+b^{2/3}} b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.40, antiderivative size = 294, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3299, 3292,
2739, 632, 210} \begin {gather*} \frac {2 (-1)^{2/3} \sqrt [3]{a} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left (\sqrt [6]{-1} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 b d \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}+\frac {2 (-1)^{2/3} \sqrt [3]{a} \text {ArcTan}\left (\frac {\sqrt [6]{-1} \left ((-1)^{5/6} \sqrt [3]{b}+i \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 b d \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}+\frac {2 \sqrt [3]{a} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}+b^{2/3}}}+\frac {x}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 2739
Rule 3292
Rule 3299
Rubi steps
\begin {align*} \int \frac {\sinh ^3(c+d x)}{a+b \sinh ^3(c+d x)} \, dx &=i \int \left (-\frac {i}{b}+\frac {i a}{b \left (a+b \sinh ^3(c+d x)\right )}\right ) \, dx\\ &=\frac {x}{b}-\frac {a \int \frac {1}{a+b \sinh ^3(c+d x)} \, dx}{b}\\ &=\frac {x}{b}-\frac {a \int \left (\frac {\sqrt [6]{-1}}{3 a^{2/3} \left (\sqrt [6]{-1} \sqrt [3]{a}-i \sqrt [3]{b} \sinh (c+d x)\right )}+\frac {\sqrt [6]{-1}}{3 a^{2/3} \left (\sqrt [6]{-1} \sqrt [3]{a}+\sqrt [6]{-1} \sqrt [3]{b} \sinh (c+d x)\right )}+\frac {\sqrt [6]{-1}}{3 a^{2/3} \left (\sqrt [6]{-1} \sqrt [3]{a}+(-1)^{5/6} \sqrt [3]{b} \sinh (c+d x)\right )}\right ) \, dx}{b}\\ &=\frac {x}{b}-\frac {\left (\sqrt [6]{-1} \sqrt [3]{a}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-i \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 b}-\frac {\left (\sqrt [6]{-1} \sqrt [3]{a}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+\sqrt [6]{-1} \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 b}-\frac {\left (\sqrt [6]{-1} \sqrt [3]{a}\right ) \int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+(-1)^{5/6} \sqrt [3]{b} \sinh (c+d x)} \, dx}{3 b}\\ &=\frac {x}{b}+\frac {\left (2 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-2 \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}+\frac {\left (2 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}+2 \sqrt [3]{-1} \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}+\frac {\left (2 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [6]{-1} \sqrt [3]{a}-2 (-1)^{2/3} \sqrt [3]{b} x+\sqrt [6]{-1} \sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}\\ &=\frac {x}{b}-\frac {\left (4 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{-4 \left (\sqrt [3]{-1} a^{2/3}-b^{2/3}\right )-x^2} \, dx,x,-2 \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}-\frac {\left (4 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{-4 \sqrt [3]{-1} \left (a^{2/3}+b^{2/3}\right )-x^2} \, dx,x,-2 (-1)^{2/3} \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}-\frac {\left (4 (-1)^{2/3} \sqrt [3]{a}\right ) \text {Subst}\left (\int \frac {1}{-4 \left (\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}\right )-x^2} \, dx,x,2 \sqrt [3]{-1} \sqrt [3]{b}+2 \sqrt [6]{-1} \sqrt [3]{a} \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{3 b d}\\ &=\frac {x}{b}-\frac {2 (-1)^{2/3} \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{b}-(-1)^{2/3} \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}}}\right )}{3 \sqrt {\sqrt [3]{-1} a^{2/3}-b^{2/3}} b d}+\frac {2 (-1)^{2/3} \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{-1} \sqrt [3]{b}+(-1)^{2/3} \sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 \sqrt {\sqrt [3]{-1} a^{2/3}-(-1)^{2/3} b^{2/3}} b d}+\frac {2 \sqrt [3]{a} \tanh ^{-1}\left (\frac {\sqrt [3]{b}-\sqrt [3]{a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+b^{2/3}}}\right )}{3 \sqrt {a^{2/3}+b^{2/3}} b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 0.15, size = 145, normalized size = 0.49 \begin {gather*} \frac {3 c+3 d x-2 a \text {RootSum}\left [-b+3 b \text {$\#$1}^2+8 a \text {$\#$1}^3-3 b \text {$\#$1}^4+b \text {$\#$1}^6\&,\frac {c \text {$\#$1}+d x \text {$\#$1}+2 \log \left (-\cosh \left (\frac {1}{2} (c+d x)\right )-\sinh \left (\frac {1}{2} (c+d x)\right )+\cosh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}-\sinh \left (\frac {1}{2} (c+d x)\right ) \text {$\#$1}\right ) \text {$\#$1}}{b+4 a \text {$\#$1}-2 b \text {$\#$1}^2+b \text {$\#$1}^4}\&\right ]}{3 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.10, size = 124, normalized size = 0.42
method | result | size |
derivativedivides | \(\frac {\frac {a \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}-3 a \,\textit {\_Z}^{4}-8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}-a \right )}{\sum }\frac {\left (\textit {\_R}^{4}-2 \textit {\_R}^{2}+1\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a -2 \textit {\_R}^{3} a -4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{3 b}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{b}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{b}}{d}\) | \(124\) |
default | \(\frac {\frac {a \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}-3 a \,\textit {\_Z}^{4}-8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}-a \right )}{\sum }\frac {\left (\textit {\_R}^{4}-2 \textit {\_R}^{2}+1\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a -2 \textit {\_R}^{3} a -4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{3 b}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{b}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{b}}{d}\) | \(124\) |
risch | \(\frac {x}{b}+\left (\munderset {\textit {\_R} =\RootOf \left (\left (729 a^{2} b^{6} d^{6}+729 b^{8} d^{6}\right ) \textit {\_Z}^{6}-243 a^{2} b^{4} d^{4} \textit {\_Z}^{4}+27 a^{2} b^{2} d^{2} \textit {\_Z}^{2}-a^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{d x +c}+\left (486 a \,b^{4} d^{5}+\frac {486 b^{6} d^{5}}{a}\right ) \textit {\_R}^{5}+\left (81 a \,b^{3} d^{4}+\frac {81 b^{5} d^{4}}{a}\right ) \textit {\_R}^{4}+\left (-135 a \,b^{2} d^{3}+\frac {27 b^{4} d^{3}}{a}\right ) \textit {\_R}^{3}-27 a b \,d^{2} \textit {\_R}^{2}+9 a d \textit {\_R} +\frac {2 a}{b}\right )\right )\) | \(175\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 27931 vs. \(2 (205) = 410\).
time = 1.24, size = 27931, normalized size = 95.00 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sinh ^{3}{\left (c + d x \right )}}{a + b \sinh ^{3}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.76, size = 1498, normalized size = 5.10 \begin {gather*} \left (\sum _{k=1}^6\ln \left (-\frac {a^3\,\left (-4\,a^2\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}-\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )\,a\,b^2\,d-{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^4\,b^6\,d^4\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,27+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^5\,b^7\,d^5\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,405+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^2\,a\,b^3\,d^2\,12-{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^3\,a\,b^4\,d^3\,54+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^4\,a\,b^5\,d^4\,108-{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^5\,a\,b^6\,d^5\,81+\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )\,a^2\,b\,d\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,20+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^2\,a^2\,b^2\,d^2\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,24-{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^3\,a^2\,b^3\,d^3\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,216+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^4\,a^2\,b^4\,d^4\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,108+{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )}^5\,a^2\,b^5\,d^5\,{\mathrm {e}}^{\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )+d\,x}\,324\right )\,24576}{b^{10}}\right )\,\mathrm {root}\left (729\,a^2\,b^6\,d^6\,z^6+729\,b^8\,d^6\,z^6-243\,a^2\,b^4\,d^4\,z^4+27\,a^2\,b^2\,d^2\,z^2-a^2,z,k\right )\right )+\frac {x}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________